﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="Common.js" type="text/javascript"></script>
    <script type="text/javascript">

        //        document.getElementById("txt").onclick = function () {

        //        };

        //ie

        //        if (document.attachEvent) {
        //            document.getElementById("txt").attachEvent("onclick", function () {

        //            });
        //        }
        //        else {
        //            document.getElementById("txt").addEventListener("click", function (e) {

        //            }, false);
        //        }


        window.onload = function () {

        }

        BindEvent(window, "load", function () {
            var ele = document.getElementById("btn");
            //BindEvent(ele, "click", function () { alert("test"); });
            BindEvent("btn", "click", function () { alert("test"); });
        });

    </script>
</head>
<body>
    <input id="btn" type="button" value="test" />
</body>
</html>
